package com.studentSystem.service.impl;

import com.studentSystem.mapper.StatisticMapper;
import com.studentSystem.service.StatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StatisticServiceImpl implements StatisticService {
    @Autowired
    StatisticMapper statisticMapper;

    @Override
    public Integer findcourseGrade(String standard, Long courseId) {
        return statisticMapper.findcourseGrade(standard, courseId);
    }

    @Override
    public List<String> studentAddressCount(Long classId) {
        return statisticMapper.studentAddressCount(classId);
    }

    @Override
    public Integer findStudentAddress(String address, Long classId) {
        return statisticMapper.findStudentAddress(address, classId);
    }

    @Override
    public Integer cLassStudentNum(Long classId, String gender) {
        return statisticMapper.cLassStudentNum(classId, gender);
    }
}
